<template>
    <div class="course-item">
        <div clsss="cover-img">
            <el-image src="https://p0.qhimg.com/bdm/1366_768_85/t01ae8a70831c1f91cc.jpg"
                style="height: 135px; border-radius: 6px;"></el-image>
            <div class="video-info">
                <div class="view">2034</div>
                <div class="time">1:34</div>
            </div>
        </div>
        <div class="title">
            <span>撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就撒肯定就啊撒开了大老师就打开拉萨就</span>
        </div>
        <div class="author">
            <span>Jixer</span>
            <el-divider direction="vertical"></el-divider>
            <span>旧故里</span>
        </div>
    </div>
</template>

<script>
export default {
    name: "course-item"
}
</script>

<style scoped>
.course-item {
    padding: 10px;
    position: relative;
}

.view {
    position: absolute;
    top: 120px;
    color: white;
    font-size: 13px;
    left: 20px;
}

.time {
    position: absolute;
    color: white;
    font-size: 13px;
    top: 120px;
    right: 20px;
}

.title {
    font-size: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
    text-overflow: ellipsis;
    cursor: pointer;
}

.title:hover {
    color: #409EFF;
}

.author {
    font-size: 13px;
    color: gray;
}
</style>